<?php

namespace App\Models\Chat;

use App\Models\BaseModel;

/**
 * App\Models\Chat\FriendMessage
 *
 * @property int $id
 * @property string $user_id 发送ID
 * @property string $friend_id 接受ID
 * @property string $message 内容
 * @property int $read 是否已读
 * @property string $read_time 读取时间
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
 * @property-read int|null $notifications_count
 * @method static \Illuminate\Database\Eloquent\Builder|FriendMessage newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|FriendMessage newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|FriendMessage query()
 * @method static \Illuminate\Database\Eloquent\Builder|FriendMessage whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FriendMessage whereFriendId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FriendMessage whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FriendMessage whereMessage($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FriendMessage whereRead($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FriendMessage whereReadTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FriendMessage whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|FriendMessage whereUserId($value)
 * @mixin \Eloquent
 */
class FriendMessage extends BaseModel
{

	protected $table ='chat_friend_message';
	protected $primaryKey = 'id';
	public $timestamps = true;
	protected $fillable = [
		'user_id',
		'friend_id',
		'message',
		'read',
		'read_time',
	];
}
